Crate yew_agent

source ·
Expand description

This module contains Yew’s web worker implementation.

Structs

A newtype around a bridge to indicate that it is distinct from a normal bridge
Id of responses handler.
Create a new instance for every bridge.
Create a single instance in a tab.
State handle for use_bridge hook
Link to worker’s scope for creating callbacks.

Traits

Bridge to a specific kind of worker.
This trait allows registering or getting the address of a worker.
This trait allows the creation of a dispatcher to an existing worker that will not send replies when messages are sent.
A trait to enable private workers being registered in a web worker.
A trait to enable public workers being registered in a web worker.
Declares the behavior of the worker.

Functions

A hook to bridge to an Worker.

Type Definitions

Alias for Rc<dyn Fn(IN)>
Alias for Rc<RefCell<T>>